import axios from '@/libs/api.request'

export const list = (data) => {
  return axios.request({
    url: '/system/loginlog/list',
    method: 'post',
    data: data,
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8'
    }
  })
}

export const delOneLog = (params) => {
  return axios.request({
    url: '/system/loginlog/delete',
    method: 'get',
    params: params,
  })
}

export const batchDelete = (data) => {
  return axios.request({
    url: '/system/loginlog/batchDelete',
    method: 'post',
    data: data,
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8'
    }
  })
}


export const emptyLog = () => {
  return axios.request({
    url: '/system/loginlog/emptyLog',
    method: 'get'
  })
}
